<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新增和删除</title>
    <script type="text/javascript"  src="http://apps.bdimg.com/libs/jquery/1.11.3/jquery.min.js"> </script>

    <script>
        function show() {
            alert("start");

            var newOBJ = document.createElement("p");
            newOBJ.innerHTML = "this is a program";

            $("div").prepend(newOBJ);

            $("#name").empty();

            $("#dog").empty();

            $("#submit").remove();
        }
    </script>

</head>
<body onload="show();">
    <div>
        <p id="dog">yi qun xiao ke ai</p>
        <input type="text" value="ahhahaahhaah" id="name"/>
        <input type="submit" id="submit"/>
    </div>
</body>
</html>